package com.alibaba.otter.manager.biz.user.dal.dataobject;

import com.alibaba.otter.manager.biz.dal.AbstractDO;
import com.alibaba.otter.shared.common.model.user.AuthorizeType;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;

/**
 *  实体类。
 *
 * @author LCH
 * @since 2024-09-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "user")
public class UserDO extends AbstractDO {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    private String username;

    private String password;

    private AuthorizeType authorizeType;

    private String department;

    private String realName;

}
